From 98806d61af6f59851faa7296547ee5c0fc431fd0 Mon Sep 17 00:00:00 2001 From: "vh249@arcadians.cl.cam.ac.uk" Date: Sat, 10 Sep 2005 14:44:31 +0000 Subject: [PATCH] add a simple usage string to xenconsoled Signed-off-by: Vincent Hanquez --- tools/console/daemon/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/console/daemon/main.c b/tools/console/daemon/main.c index 1df737226a..178ae792e2 100644 --- a/tools/console/daemon/main.c +++ b/tools/console/daemon/main.c @@ -30,6 +30,12 @@ #include "utils.h" #include "io.h" +void usage(char *prg) +{ + fprintf(stderr, + "usage: %s [-h] [-V] [-v] [-i]\n", prg); +} + int main(int argc, char **argv) { const char *sopts = "hVvi"; @@ -49,7 +55,7 @@ int main(int argc, char **argv) while ((ch = getopt_long(argc, argv, sopts, lopts, &opt_ind)) != -1) { switch (ch) { case 'h': - //usage(argv[0]); + usage(argv[0]); exit(0); case 'V': //version(argv[0]); -- 2.30.2